package com.lin.form;

import lombok.Data;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * Created by Administrator on 2017-10-13.
 */
@Data
public class SellerUserForm {

    private String sellerId;

    @NotEmpty(message = "请输入用户名")
    @Length(min = 4,max = 8,message ="用户名长度在四位到八位之间" )
    private String username;

    @NotEmpty(message = "请输入密码")
    @Length(min = 4,max = 8,message ="密码长度在四位到八位之间" )
    private String password;

    @NotEmpty(message = "请输入昵称")
    private String nickname;

//    @NotEmpty(message = "请选择用户角色")
    private String role;

    private String phone;

    @Email(message = "请输入正确邮箱格式")
    private String email;

    private Integer status=0;
}
